        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>DynamicTreeNode class / box2d Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d" data-type="DynamicTreeNode">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d.html">box2d</a> &rsaquo; <a href="../box2d/DynamicTreeNode.html">DynamicTreeNode</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>DynamicTreeNode</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class DynamicTreeNode {
 AxisAlignedBox box;

 DynamicTreeNode parent;

 DynamicTreeNode next;

 DynamicTreeNode childOne;

 DynamicTreeNode childTwo;

 /** Can contain whatever is useful to the user. */
 var userData;

 /** Used for sorting. */
 int key;

 /** Should never be constructed outside the engine. */
 DynamicTreeNode._construct()
   : box = new AxisAlignedBox(),
     parent = null,
     next = null,
     childOne = null,
     childTwo = null;

 /** Returns true if this node is a leaf. */
 bool get isLeaf =&gt; childOne == null;

 String toString() =&gt; box.toString();
}
</pre>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="box">
<button class="show-code">Code</button>
<a href="../box2d/AxisAlignedBox.html">AxisAlignedBox</a>         <strong>box</strong> <a class="anchor-link"
            href="#box"
            title="Permalink to DynamicTreeNode.box">#</a>
        </h4>
        <div class="doc">
<pre class="source">
box
</pre>
</div>
</div>
<div class="field"><h4 id="childOne">
<button class="show-code">Code</button>
<a href="../box2d/DynamicTreeNode.html">DynamicTreeNode</a>         <strong>childOne</strong> <a class="anchor-link"
            href="#childOne"
            title="Permalink to DynamicTreeNode.childOne">#</a>
        </h4>
        <div class="doc">
<pre class="source">
childOne
</pre>
</div>
</div>
<div class="field"><h4 id="childTwo">
<button class="show-code">Code</button>
<a href="../box2d/DynamicTreeNode.html">DynamicTreeNode</a>         <strong>childTwo</strong> <a class="anchor-link"
            href="#childTwo"
            title="Permalink to DynamicTreeNode.childTwo">#</a>
        </h4>
        <div class="doc">
<pre class="source">
childTwo
</pre>
</div>
</div>
<div class="field"><h4 id="isLeaf">
<button class="show-code">Code</button>
final bool         <strong>isLeaf</strong> <a class="anchor-link"
            href="#isLeaf"
            title="Permalink to DynamicTreeNode.isLeaf">#</a>
        </h4>
        <div class="doc">
<p>Returns true if this node is a leaf. </p>
<pre class="source">
bool get isLeaf =&gt; childOne == null;
</pre>
</div>
</div>
<div class="field"><h4 id="key">
<button class="show-code">Code</button>
int         <strong>key</strong> <a class="anchor-link"
            href="#key"
            title="Permalink to DynamicTreeNode.key">#</a>
        </h4>
        <div class="doc">
<pre class="source">
key
</pre>
</div>
</div>
<div class="field"><h4 id="next">
<button class="show-code">Code</button>
<a href="../box2d/DynamicTreeNode.html">DynamicTreeNode</a>         <strong>next</strong> <a class="anchor-link"
            href="#next"
            title="Permalink to DynamicTreeNode.next">#</a>
        </h4>
        <div class="doc">
<pre class="source">
next
</pre>
</div>
</div>
<div class="field"><h4 id="parent">
<button class="show-code">Code</button>
<a href="../box2d/DynamicTreeNode.html">DynamicTreeNode</a>         <strong>parent</strong> <a class="anchor-link"
            href="#parent"
            title="Permalink to DynamicTreeNode.parent">#</a>
        </h4>
        <div class="doc">
<pre class="source">
parent
</pre>
</div>
</div>
<div class="field"><h4 id="userData">
<button class="show-code">Code</button>
var         <strong>userData</strong> <a class="anchor-link"
            href="#userData"
            title="Permalink to DynamicTreeNode.userData">#</a>
        </h4>
        <div class="doc">
<pre class="source">
userData
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="toString">
<button class="show-code">Code</button>
String <strong>toString</strong>() <a class="anchor-link" href="#toString"
              title="Permalink to DynamicTreeNode.toString">#</a></h4>
<div class="doc">
<div class="inherited">
<p>Returns a string representation of this object.</p>
<div class="docs-inherited-from">docs inherited from Object </div></div>
<pre class="source">
String toString() =&gt; box.toString();
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
